<?php


namespace app\api\controller;


use think\facade\Db;

class User
{
    public function list() {
        $list = Db::table('tb_user')->field('user_name')->select()->toArray();
        return json($list);
    }

    public function create() {
        echo 'create';
    }

    public function update() {
        echo 'update';
    }
}